<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class FourDoctor extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;
    use HasFactory;
    protected $table = 'four_doctor';

    public function campus(){
        return $this->hasOne(FourCampus::class,'id','campus_id');
    }

    public function title(){
       return $this->hasOne(FourAdminTitle::class,'id','title_id');
    }

    public function department(){
        return $this->hasOne(FourDepartment::class,'id','campus_id');
    }



    public function label(){
        return $this->hasOne(FourLabel::class,'id','label_id');
    }

}
